package xc.com.cms.feign;

import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import xc.com.cms.config.FeignConfig;
import xc.com.course.domain.CourseView;

@FeignClient(value = "xc-service-course",url = "localhost:8002",configuration = FeignConfig.class)
public interface CourseFeign {

    @RequestLine(value = "POST /courseView/select")
    CourseView courseView(@RequestBody String courseId);
}
